<admintpl file="header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>派单员任务列表</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('Operation/pntask_list')}">
        跑客电话：<input type="text" name="mobile" style="width: 100px;" value="{$formget.mobile}">
        是否完成：
        <select class="select_2" name="is_complete"  style="width: 80px;" >
            <option value='-1'>全部</option>
            <option value='0'{:I("post.is_complete")==0?selected:''}>未完成</option>
            <option value='1'{:I("post.is_complete")==1?selected:''}>已完成</option>
        </select> &nbsp;&nbsp;
        完成时间：
        <input type="text" name="start_time" class="js-date" value="{$formget.start_time|default=''}" style="width: 90px;" autocomplete="off">-
        <input type="text" class="js-date" name="end_time" value="{$formget.end_time}" style="width: 90px;" autocomplete="off"> &nbsp; &nbsp;
        &nbsp;&nbsp;

        <input type="submit" class="btn btn-primary" value="搜索" />
    </form>
    <form method="post" class="js-ajax-form">
        <!--<div class="table-actions">-->
        <!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/sign',array('sign'=>1))}" data-subcheck="true">签约</button>-->
        <!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/cancelsign',array('unsign'=>1))}" data-subcheck="true">取消签约</button>-->
        <!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/incubator',array('incubator'=>1))}" data-subcheck="true">领取保温箱</button>-->
        <!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/freezee',array('freezee'=>1))}" data-subcheck="true" data-msg="您确定冻结账户吗？">冻结</button>-->
        <!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/cancelfreezee',array('cancelfreezee'=>1))}" data-subcheck="true" data-msg="您确定启用账户吗？">启用</button>-->
        <!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/cancelaudit',array('audit'=>1))}" data-subcheck="true">取消审核</button>-->
        <!--</div>-->
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
                <th align="center">序号</th>
                <th>派单员电话</th>
                <th>任务标题</th>
                <th>是否完成</th>
                <th>完成时间</th>
            </tr>
            </thead>
            <tbody>
            <php>
                $is_completes =array('0'=>'未完成','1'=>'已完成');
            </php>
            <foreach name="datas" item="vo" key="k">
                <tr>
                    <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.dispatch_task_id}" title="ID:{$vo.dispatch_task_id}"></td>
                    <td align="center">{$k+1}</td>
                    <td align="center">{$vo.mobile}</td>
                    <td align="center">{$vo.task_title}</td>
                    <td align="center">{$vo.is_completes[$vo.is_complete]}</td>
                    <td align="center">{$vo.complete_time}</td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <if condition="empty($datas)">
            <div style="padding: 30px;text-align: center;color: #999999">
                <i class="fa fa-database" style="font-size: 38px"></i><br />
                暂无数据
            </div>
        </if>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>

</script>
</body>
</html>